<?php
namespace app\scodetrace\validate;

class Activity extends \app\common\validate\Base {
	protected $rule=[
		'type_id|活动类型'=>'check_id:ActivityType',
		'batch_id|产品批次'=>'check_id:Batch',
		'name|活动名'=>'length:1,50',
		'issue_amount|发行数量'=>'number',
		'used_amount|已用数量'=>'number',
		'start_time|开始时间'=>'number',
		'end_time|结束时间'=>'number'
	];

	protected $create_require=['type_id','name','batch_id'];
}
?>